/*
 * author      : dormi330
 * date        : 2018/6/26
 * description : adaptor skuCode
 */

package com.deep.trade.adaptor.required.sku;

import com.deep.trade.common.BaseDto;

import java.math.BigDecimal;

public class Sku extends BaseDto {
    private String id;                         // 32位 uuid
    private String tenantCode;                 // 租户编码
    private long version;
    private String sellerId;
    private String sellerName;
    private String shopId;
    private String itemId;
    private String brandId;
    private String skuCode;
    private String itemName;
    private String itemCode;
    private BigDecimal priceMoney;
    private String imgUrl;
    private String propNames;       // 属性名
    private String propValues;      // 属性值
    private BigDecimal commission;  // 分润

    public Sku() {
    }

    public Sku(
            String tenantCode,
            String id,
            String sellerId,
            String sellerName,
            String shopId,
            String itemId,
            String itemName,
            String itemCode,
            String brandId,
            String skuCode,
            BigDecimal priceMoney,
            String imgUrl,
            String propNames,
            String propValues,
            BigDecimal commission
    ) {
        super();
        this.setTenantCode(tenantCode);
        this.setId(id);
//        this.setCreatedBy(sellerId);
//        this.setUpdatedBy(sellerId);

        this.setSellerId(sellerId);
        this.setSellerName(sellerName);
        this.setShopId(shopId);
        this.setItemId(itemId);
        this.setItemName(itemName);
        this.setItemCode(itemCode);
        this.setBrandId(brandId);
        this.skuCode = skuCode;
        this.priceMoney = priceMoney;
        this.imgUrl = imgUrl;
        this.propNames = propNames;
        this.propValues = propValues;
        this.commission = commission;
    }

    // setter getter

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public BigDecimal getPriceMoney() {
        return priceMoney;
    }

    public void setPriceMoney(BigDecimal priceMoney) {
        this.priceMoney = priceMoney;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getPropNames() {
        return propNames;
    }

    public void setPropNames(String propNames) {
        this.propNames = propNames;
    }

    public String getPropValues() {
        return propValues;
    }

    public void setPropValues(String propValues) {
        this.propValues = propValues;
    }

    public BigDecimal getCommission() {
        return commission;
    }

    public void setCommission(BigDecimal commission) {
        this.commission = commission;
    }
}
